﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using BLL;
namespace TaoBaoProject.Handler.RegisterHandler
{
    /// <summary>
    /// Summary description for DeleteRegisterHandler
    /// </summary>
    public class DeleteRegisterHandler : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";

            string proid = context.Request.Params["id"].ToString();
            if (RegisterBLL.DeleteRegister(proid) == 1)
            {
                context.Response.Write("{'success':true}");
                return;
            }
            context.Response.Write("{'success':'false'}");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}